﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VolunteerHubAdapter.Models
{

    public class Event
    {
        public DateTime EndTime { get; set; }
        public Guid EventGroupUd { get; set; }
        public Guid EventUid { get; set; }
        public string Location { get; set; }

        private string _longDescription;
        public string LongDescription { 
            get 
            {
                return _longDescription;
            }
            set
            {
                _longDescription = System.Net.WebUtility.HtmlDecode(System.Text.RegularExpressions.Regex.Replace(value, "<[^>]*(>|$)", String.Empty));
            }
        }

        public string Name { get; set; }

        private string _shortDescription;
        public string ShortDescription { 
            get
            {
                return _shortDescription;
            }
            set
            {
                _shortDescription = System.Net.WebUtility.HtmlDecode(System.Text.RegularExpressions.Regex.Replace(value, "<[^>]*(>|$)", String.Empty));
            }
        }

        public DateTime StartTime { get; set; }
        public UserGroupRegistration[] UserGroupRegistrations { get; set; }
        public ulong Version { get; set; }
    }
}
